package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Flapping extends AbstractMethod {
    private static final String name = "flapping";
    /**
    Perform flap detection on the alerts. The method used is similar method to Nagios: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/flapping.html
    **/
    /**
    对警报执行襟翼检测。所使用的方法与Nagios相似：https：//assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/flapping.html
    **/
    public Flapping(double high, double low) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new OriginalArg(high));


        //
        this.args.add(new OriginalArg(low));


    }
}
